const watch = require('gulp-watch');
const gulp = require('gulp');
const electron = require('electron-connect').server.create()
async function init() {
    try {
      gulp.task('watch', function () {
        electron.start();
        watch(['./main/main.js'],electron.restart);
      });
    } catch (error) {
      console.error(error)
    }  
 }
  
  init()